package homework004;

/**
 * 自定义异常类需求
 */
public class ExceptionDemo {
    public static void main(String[] args) {
        try {
            MyScanner.doScanner();
        } catch (Exception e) {
            // e.printStackTrace();
            System.out.println(e.getMessage());
        }
    }
}

